<span style="position:absolute; right:0px; top:30px;">
  <table class="style2" width="200">
    <tr  bgcolor="#5B7C67">
      <td><font color="#F8F8F8">Personal information</font></td>
    </tr>
    <tr>
      <td>
        <?php 
          $link = connect_to_db('', 'admin_xbq', 'nihao', 'test');
          $sql = "select * from user where user_ID=".$_SESSION['user_id'].";";
          $result = mysql_query($sql) or die('Query failed2: ' . mysql_error());
          $line = mysql_fetch_array($result, MYSQL_ASSOC);
          if ($line['user_type'] == 't') {
            echo '<br />You logged in as a teacher.';
          }
          else {
            if ($line['user_type'] == 's') {
              echo '<br />You logged in as a zav. kaf.';
            }
            else {
              if ($line['user_type'] == 'd') {
                echo '<br />You logged in as a dekan.';
              }
              else {
                if ($line['user_type'] == 'r') {
                  echo '<br />You logged in as a rector.';
                }
              }
            }
          }
          echo '<br />'.$line['user_duty'].'<br />';
          echo $line['user_name'].'<br />';
          echo 'Phone:'.$line['phone'].'<br />';
          echo 'E-mail: <a href="mailto:'.$line['email'].'">'.$line['email'].'</a><br />';
          echo '<br /><a href="">Change my information</a>'
        /*
          echo '<br/>'.$line['sr_head_duty'];
          echo '<br />';
          echo $line['sr_head_name'];
          echo '<br />';
          echo 'Telephone: '.$line['phone'];
          echo '<br />';
          echo 'E-mail: <a href="mailto:'.$line['email'].'">'.$line['email'].'</a>';
          echo '<br />';
          echo 'Home page: <a href="'.$line['sr_page'].'">'.$line['sr_page'].'</a><br />';
          echo '<br />';
        */
        ?>
      </td>
    </tr>
  </table>
</span>
